// 菜单配置
// headerMenuConfig：头部导航配置
// asideMenuConfig：侧边导航配置

const headerMenuConfig = [{
    name: '首页',
    to: '/',
    icon: 'home',
  },
  {
    name: '帮助',
    to: '/manual',
    external: false,
    newWindow: false,
    icon: 'bangzhu',
  },
];

const asideMenuConfig = [{
    name: '仪表盘',
    path: '/dashboard',
    icon: 'home',
  },
  {
    name: '基础设施管理',
    path: '/manage',
    icon: 'cascades',
    children: [
      {
        name: '设备管理',
        path: '/manage/device',
        icon: 'cascades',
      },
      {
        name: '网关管理',
        path: '/manage/lowermachine',
        icon: 'compass',
      },
      {
        name: '指标组管理',
        path: '/manage/metricgroup',
        icon: 'ul-list',
      },
      {
        name: '指标管理',
        path: '/manage/metric',
        icon: 'material',
      },
    ],
  },
  {
    name: '数据采集管理',
    path: '/collection',
    icon: 'exchange',
    children: [{
        name: '任务管理',
        path: '/collection/job',
        icon: 'task',
      },
      {
        name: '监控数据',
        path: '/collection/monitor',
        icon: 'chart',
      },
    ],
  },
  {
    name: '运维支撑管理',
    path: '/devops',
    icon: 'repair',
    children: [
      // {
      //   name: '服务集群管理',
      //   path: '/devops/cluster',
      //   forVersion: 'cluster',
      //   icon: 'ol-list',
      // },
      {
        name: '连接池管理',
        path: '/devops/connectionpool',
        icon: 'shop',
      },
      {
        name: '运行环境',
        path: '/devops/actuator/env',
        forVersion: 'sap',
        icon: 'content',
      },
      {
        name: '应用信息',
        path: '/devops/actuator/info',
        forVersion: 'sap',
        icon: 'content',
      },
      {
        name: '应用监控信息',
        path: '/devops/actuator/metrics/tree',
        forVersion: 'sap',
        icon: 'content',
      }
    ],
  },
  {
    name: '告警策略管理',
    path: '/alarm',
    icon: 'notice',
    children: [{
      name: '策略管理',
      path: '/alarm/policy',
      icon: 'creative',
    }, {
      name: '策略表达式管理',
      path: '/alarm/expression',
      icon: 'quote2',
    }, {
      name: '事件管理',
      path: '/alarm/event',
      icon: 'bell',
    }, ],
  },
];

export {
  headerMenuConfig,
  asideMenuConfig
};
